#include "ThreadPool.hpp"

int main()
{
    //kzz::ThreadPool<int> _tp;
    ////非常重要，返回值要用引用接受
   kzz::ThreadPool<int>& _tp=*kzz::ThreadPool<int> ::GetInstance();
    _tp.Start();
    int cnt = 5;
    sleep(1);
    while (cnt > 1)
    {
        _tp.Equeue(cnt);
        --cnt;
 
    }
    sleep(1);
    //sleep(5);
    _tp.Stop();
    _tp.Join();
   
    return 0;
}